#ifndef PROTOCOL_H
#define PROTOCOL_H
#include <stdlib.h>
#include <unistd.h>
#include <string>
typedef unsigned int uint;
struct PDU
{
    uint uiPduLen;   //总的协议
    uint uiMsgType;  //消息的类型
    char caData[64];
    uint uiMsgLen;  //实际消息长度
    int caMsg[];    //实际消息
};
PDU* mkPdu(uint uiMsglen);
#endif // PROTOCOL_H

